﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PowerSource : Unit, IAngularVelocityDeliever
{
    public float AngularVelocity = 0;
    public float AngularDelta { get; private set; }

    public override void UpdateSelf(float te, ConnectionType dt)
    {
        Debug.Assert(dt == ConnectionType.None);

        AngularDelta = te * AngularVelocity;
        Angle += AngularDelta;
    }
}
